import {commonJsonRequest, commonUrlRequest} from './axiosFun';

/**
 * 菜单管理
 **/
// 菜单管理-获取菜单树型数据
export const menuTree = () => {
  return commonUrlRequest("get", "/v1/m/sys/menu/tree");
};
// 菜单管理-获取菜单详情
export const menuGet = (id) => {
  return commonUrlRequest("get", "/v1/m/sys/menu/" + id);
};
// 菜单管理-修改菜单
export const menuSave = (params) => {
  return commonJsonRequest("post", "/v1/m/sys/menu", params)
};
// 菜单管理-删除菜单
export const menuDelete = (id) => {
  return commonUrlRequest("delete", "/v1/m/sys/menu/" + id);
};
